<%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.*" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% request.setCharacterEncoding("utf-8"); %>
<html>
  <head>
    <title>导航区</title>
    <meta content="text/html; charset=gb2312" http-equiv="Content-Type" />
   <link rel="stylesheet" type="text/css" href="../style/easyui.css">
	<link rel="stylesheet" type="text/css" href="../style/icon.css">
	<script type="text/javascript" src="../script/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="../script/jquery.easyui.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".tree-node").click(function(){
				if($(this).children(".tree-title").children("div").attr("data")){
					window.parent.frames[1].location.href="<%=basePath%>"+$(this).children(".tree-title").children("div").attr("data");
				}
				
			});
		});
	</script>
 </head>
<body class="easyui-layout">
	<div data-options="region:'center',title:'菜单栏'" style="width:200px;padding:10px;">
                <ul class="easyui-tree">
                    <li>
                    	<span>小马机经</span>
                    	<ul>
                    		<c:if test="${username=='admin' }">
                    		<li><div data='pages/sys/userList.jsp'>用户管理</div></li>
                    		</c:if>
                    		<li><div data='pages/uploadData/uploadQuestionData.jsp'>批量上传</div></li>
                    		<li><div data='pages/sys/questionlist.jsp'>题库列表</div></li>
                    		<li><div data='pages/sys/questionTimelist.jsp'>时间列表</div></li>
                    		<li><div data='pages/sys/forecast.jsp'>机经预测</div></li>
                    		<li><div data='pages/sys/noticeList.jsp'>命中公告</div></li>
                    		<li><div data='pages/uploadData/uploadForecastPic.jsp'>上传预测图片</div></li>
                    	</ul>
                    </li>
                </ul>
           
	</div>
</body>
</html>












